package com.oracle.service.imple;

import com.oracle.dao.UserMapper;
import com.oracle.pojo.User;
import com.oracle.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper um;
    @Override
    public User findUserByUserName(String name) {
        return um.selectByPhone(name);
    }

    @Override
    public Integer save(User user) {
        return um.insertSelective(user);
    }
}
